<template>
	<view>
		<view style="text-align: center;">
			<span class="font_family .icon-PC" style='font-size: 100px;'></span>
			<p style='color: #333333;'>在电脑上登录管理后台</p>
		</view>
		<view class="box">
			<view class="boxtext" style="position: relative;">
					<span style="position: absolute;top: 50%;bottom: 50%;line-height: unset;margin: 0;padding: 0;margin-top: -19px;font-size: 12px;">URL</span>
				<view>
					<p class='textR' style='width: 60%;margin-left: 40%;padding: 10px 0;'>{{url}}</p>
				</view>
			</view>
		</view>
		<view class="box">
			<view class="boxtext" style="background: white;height: 40px;line-height: 40px;">
				<view style="width: 30%;float: left;">
					<span class='textR' style='line-height: 40px;'>登录账号</span>
				</view>
				<view style="width: 70%;float: left;text-align: right;">
					<span class='textR' style='line-height: 40px;font-weight: 600;'>admin01</span>
				</view>
			</view>
		</view>
		<view class="box">
			<view class="boxtext" style="background: white;height: 40px;line-height: 40px;">
				<view style="width: 30%;float: left;">
					<span class='textR' style='line-height: 40px;'>登录密码</span>
				</view>
				<view style="width: 70%;float: left;text-align: right;">
					<span class='textR' style='line-height: 40px;font-weight: 600;'>admin01</span>
				</view>
			</view>
		</view>
		<button @click="paste(url)" style="border-radius:25px;background: #195B40;color: white;width: 80%;text-align: center;">复制URL</button>
	</view>
</template>

<script>
	import {registePcUser} from'../../api/index.js'
	export default {
		data() {
			return {
				url:'pmall.comhtomhttppmall.comhttppmall.comhttppmall.comhttppmall.comhttppmall.comhttppmall.comhttps:l.com'
			}
		},
		methods: {
			paste(value) {
						uni.setClipboardData({
							data: value
						});
					}
		},
		onLoad() {
			console.log('1321')
			var data={
				a:'1111'
			}
			var _data=registePcUser()
			console.log(_data)
			// Promise {[[PromiseStatus]]: "resolved", [[PromiseValue]]: "xx"}
			Promise.resolve(_data).then(function (result) { 
				if(result.code=='0'){
					console.log(result)
				}
				 })
		}
	}
</script>

<style>
.box{
	width: 80%;
	margin: 0 10%;
	background: white;
}
.boxtext{
	height: auto;
	margin: 10px;
	line-height: 40px;
	
}
.textR{
	color: #195B40;
	word-break: break-all;
	/* overflow-x: auto; */
	/* text-align: right; */
}
</style>